package com.oracle.Service;

import com.oracle.Service.impl.FeedbackService;
import com.oracle.dao.impl.FeedbackDao;
import com.oracle.pojo.Feedback;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FeedbackServiceImpl implements FeedbackService {

    @Autowired
    private FeedbackDao feedbackDao;

    @Override
    public Integer addFeedBack(Feedback feedback) {
        return feedbackDao.addFeedBack(feedback);
    }

    @Override
    public Feedback findFeedbackByOiid(Integer oiid) {
        return feedbackDao.findFeedbackByOiid(oiid);
    }

    @Override
    public Integer updateFeedBack(Feedback feedback) {
        return feedbackDao.updateFeedBack(feedback);
    }

    @Override
    public List<Feedback> findFeedBacksByUid(Integer uid) {
        return feedbackDao.findFeedBacksByUid(uid);
    }

    @Override
    public List<Feedback> findFeedbackByBid(Integer bid) {
        return feedbackDao.findFeedbackByBid(bid);
    }
}
